home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / lang / mc302 / dosutil / park.doc < prev    next >
Text File  |  1994-03-18  |  3KB  |  64 lines

  1. PARK: A configurable hard drive parking utility.
  2.  
  3.    Some time ago, I put together an XT computer out of spare parts I had lying
  4. around, and ended up with a rather weird disk configuration. I had this 12 Meg
  5. hard drive, which had 6 heads and 240 cylinders. The closest drive table entry
  6. on the XT controller was 6 heads and 400 cylinders.
  7.  
  8.    I was able to use the drive by doing a partial format of only the first 240
  9. cylinders, and establishing a primary DOS partition (using FDISK) which was 240
  10. cylinders in size. Although the BIOS thought it was a 400 cylinder drive, it
  11. had no reason to access to the cylinders which were not physically present.
  12.  
  13.    This worked perfectly, until I tried to park the drive.... (Insert the sound
  14. of a head actuator banging against the stop about 160 times!!!)
  15.  
  16.    Since I had run into other situations (particularily on XT's) where I didn't
  17. always have a park utility which put the heads away where I wanted, I decided
  18. to solve the problem once and for all, and wrote PARK.COM described below:
  19.  
  20.    The source code to PARK is provided in the file PARK.C, and may be
  21. re-compiled using my MICRO-C compiler (See enclosed CATALOG file). It MUST
  22. be complied in TINY model, which allows it to easily write out an updated
  23. copy of itself (See '-s' option).
  24.  
  25.    The program may be freely used and distributed, provided that my copyright
  26. notices are not removed or altered.
  27.  
  28.    In its simplest form, the PARK command consists of one decimal operand for
  29. each drive in the system, which is the cylinder number at which to park the
  30. drive. If you specify a cylinder number of 0 (zero), the highest cylinder
  31. number for that drive as reported by BIOS is used:
  32.  
  33.       PARK 0          ; Park drive C at highest known cylinder
  34.       PARK 240        ; Park drive C at cylinder 240
  35.       PARK 240 0      ; Park drive C at 240, drive D at highest
  36.       PARK 240 400    ; Park drive C at 240, drive D at 400
  37.  
  38.    If the BIOS does not acknowledge the existance of a drive, it will be
  39. ignored. The last two examples above would be equivalent to "PARK 240" on
  40. a single drive system.
  41.  
  42.    PARK.COM supports a '-s' option, which causes it to write a new PARK.COM
  43. which defaults to the remaining options. Executing PARK with no arguments
  44. will PARK at these default settings:
  45.  
  46.       PARK -s 240 0   ; Save the settings
  47.       PARK            ; Park drive C at 240, drive D at highest
  48.  
  49.    You may see the currently defined default settings by executing PARK
  50. with the '-s' option, and no other arguments:
  51.  
  52.       PARK -s         ; Display the default settings
  53.  
  54.    The PARK.COM program supplied in this archive is defaulted to TWO drives,
  55. both of which are parked at the highest cylinder number indicated by BIOS.
  56. This is equivalent to:
  57.  
  58.       PARK -s 0 0     ; Default to drive C+D, highest cylinder
  59.  
  60.    PARK will display a brief help summary if you give it an operand of
  61. '?' or '-?'.
  62.  
  63.       PARK ?          ; Display usage info
  64.